import {myhttp} from '@/utils/request'


class LoginService{
  login(username: string, password: string){
    return myhttp.post('/user/login',{username:username, password:password});
  }

  logout() {
    return myhttp.post('/user/logout')
  }

  getInfo() {
    return myhttp.get('/user/info')
  }
}
const userService = new LoginService();
export {userService}